package com.sanploy.fed.push.util;

import java.util.regex.Matcher;
import java.util.regex.Pattern;
import java.util.regex.PatternSyntaxException;

/**
 * Created by Administrator on 2016/8/10.
 */
public class StringFilter {

    public   static   String StringFilterUntil(String str)   throws PatternSyntaxException {

        // 清除掉所有特殊字符
        String regEx="[`~!@#$%^&()+=|{}':'//[//].<>/~！@#￥%……&*（）——+|{}]";
        Pattern p   =   Pattern.compile(regEx);
        Matcher m   =   p.matcher(str);

        return   m.replaceAll("").trim();
    }
}
